//
//  OrderReceivingView.swift
//  Order
//
//  Created by Lazyloading on 2020/7/1.
//  Copyright © 2020 lazyloading. All rights reserved.
//

import UIKit

class OrderReceivingView: UIView {
    typealias setBlock = (UIButton) -> ();
    typealias orderBlock = (UIButton) -> ();
    var setBlockAction : setBlock?;
    var orderBlockAction : orderBlock?;
    
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */


    @IBAction func settingAction(_ sender: UIButton) {
        if self.setBlockAction != nil {
            self.setBlockAction!(sender);
        }
        print("设置");
    }
    
    @IBAction func orderAction(_ sender: UIButton) {
        if self.orderBlockAction != nil {
            self.orderBlockAction!(sender);
        }
        print("接单");
    }
    
}
